package demo.thread;


/**
 * @author : feixiang.li
 * @since : 2025-09-18 10:43
 */
public class DisCardRejectHandle implements RejectHandle {
    @Override
    public void reject(Runnable runnable, MyThreadPool myThreadPool) {
        // 丢弃一个任务
        System.out.println("随机丢弃一个任务");
        myThreadPool.blockingQueue.remove();
    }
}
